<?php
namespace app\supplier\model;


use think\Model;

/**
 *  供应商入库商品金额
 * @property  int $id
 *  @property  int $supplier_id 供应商入库id
 *  @property  int $goods_id 商品id
 *  @property  float $money 金额
 *  @property  float $original_money 原始金额
 */
class SupplierStoreGoodsAmount extends Base
{

    public static function onBeforeInsert(SupplierStoreGoodsAmount $model)
    {
        $model->original_money = $model->money;
    }

}